// src/types/goods.ts
export type GoodsStatus = '待交易' | '交易中' | '已售出'
export type TradeType = '线上' | '线下' | '线上/线下'
export type GoodsType = '书籍' | '电子产品' | '生活用品' | '服饰' | '学习用品' | '其他'

export interface IGoods {
  id: number
  type: GoodsType
  name: string
  price: number
  description: string
  remainCount: number
  viewCount: number
  imgUrl: string
  status: GoodsStatus
  tradeType: TradeType
  createdBy: string
  createTime: string
}
